package com.cjk.console.enums;

import java.util.ArrayList;
import java.util.List;

public enum LogTopic {
	
	INFORM("Inform", "周期报文"),
	SYSINFO_LOG("SysInfoLog", "系统日志"),
	FLOW_LOG("FlowLog", "流量日志");
	
	private String code;
	private String label;
	
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getLabel() {
		return label;
	}
	public void setLabel(String label) {
		this.label = label;
	}
	
	private LogTopic(String code, String label) {
		this.code = code;
		this.label = label;
	}
	
	public static List<String> getEnumStringList() {
		List<String> logs = new ArrayList<>();
		for (LogTopic logTopic : LogTopic.values()) {
			logs.add(logTopic.toString());
		}
		return logs;
	}
}
